package com.canyou.system.entity.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 菜单详情模型
 *
 * @author fy
 * @date 2021/5/24 15:13
 */
@Data
@ApiModel(value = "MenuDetailVO", description = "菜单详情模型")
public class MenuDetailVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty("上级菜单id")
    private Long parentId;

    @ApiModelProperty("菜单/按钮名称")
    private String title;

    @ApiModelProperty("菜单URL")
    private String url;

    @ApiModelProperty("权限标识")
    private String permission;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("菜单类型（0菜单  1 按钮(弹出)  2按钮(新开)）")
    private Integer type;

    @ApiModelProperty("菜单排序")
    private Integer sort;

    @ApiModelProperty("上级菜单名称")
    private String parentName;

    @ApiModelProperty(value = "乐观锁版本")
    private Long version;

}
